package com.ellwood.IPGuard.infrastruction.domain.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ellwood.IPGuard.common.core.basic.EntityFactory;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @ProjectName: IPGuard-boot
 * @PackageName: com.ellwood.IPGuard.infrastruction.domain.entity
 * @ClassName: UmsMenuEntity
 * @Description: // 菜单实体
 * @Author: Ellwood
 * @CreateDate: 2024/9/25 - 下午4:28
 * @Version: V1.0.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("ums_menu")
@Schema(description = "菜单实体")
public class UmsMenuEntity extends EntityFactory {

    @Schema(description = "主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "父id")
    private Long parentId;

    @Schema(description = "菜单名")
    private String menuName;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "类型：0，目录，1菜单，2：按钮")
    private Integer menuType;

    @Schema(description = "路由路径   umsUser")
    private String path;

    @Schema(description = "组件路径  如：ums/user/index")
    private String componentPath;

    @Schema(description = "权限标识")
    private String perms;

    @Schema(description = "图标")
    private String icon;

}

